<{include file="../common/header.tpl"}>
<style>
	td .tdRightCss{
		text-align: right;
	}
</style>
<table width="100%" border="0" cellspacing="0">
	<tr>
		<td width="13%" valign="top">
			<{include file="../common/left.tpl"}>
		</td>
        <td width="87%" valign="top"><table width="100%" border="0" cellspacing="0">
				<tr>
					<td>
						<form id="subject_form" method="" action="">
						<div class="subnav">
							<div class="content-menu ib-a blue line-x"> <a href="/webadmin/question/set" class="on"><em>问卷内容设置</em></a><span>|</span> 是否基本信息：
								<select name="is_basic">
									<option value="">请选择</option>
									<option <{if $subjectOne.is_basic eq 1}>selected="selected"<{/if}> value="1">是</option>
									<option <{if $subjectOne && $subjectOne.is_basic eq 0}>selected="selected"<{/if}> value="0">否</option>
								</select>
								&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="hidden" name="subject_id" value="<{$subjectOne.subject_id}>"/>
								<input type="hidden" name="question_id" value="<{$questionId}>"/>
								<input type="hidden" name="type_id" value="<{$typeId}>"/>
								题目类型：
								<select name="question_type">
									<{foreach $questionType as $key=>$ls}>
									<option <{if $subjectOne.question_type eq $key}>selected="selected"<{/if}> value="<{$key}>" <{if $typeId eq $key}>selected="selected"<{/if}> >--<{$ls.title}>--</option>
									<{/foreach}>
								</select>
							</div>
						</div>

						<div class="wjtx">							
							<table width="100%" style="margin:0px;"  bgcolor="#eef3f7">
								<tbody>
									<tr>
										<td width="5%" height="60" class="tdRightCss">
											问题归类：  	</td>	
										<td width="15%">
											<select id="classify" name="classify_id" style="width:90%">
												<option value="0">-请选择-</option>
												<{foreach $classify as $key=>$val}>
												<option <{if $subjectOne.classify_id eq $key}>selected="selected"<{/if}> value="<{$key}>"><{$val}></option>
												<{/foreach}>
											</select>
										</td>
										
										<td class="tdRightCss"><a href="javascript:void(0);" name="classify_add">添加归类</a></td>
										<td width="40%">
											<span id="classify_add_td" style="display:none;">
											<input name="classify_name" id="classify_name" value="" style="width:300px;" class="inputTextLine">
											<input class="button" type="button" name="classify_add_sub" value="添加">
											</span>
										</td>
										<td class="tdRightCss" id="standard_score_name" <{if $subjectOne.is_basic}>style="display:none;"<{/if}>>
											标准得分：  	</td>
										<td id="standard_score" <{if $subjectOne.is_basic}>style="display:none;"<{/if}>>
											<input name="standard_score" value="<{$subjectOne.standard_score}>" style="width:90%" class="inputTextLine">
										</td>
										
									</tr>
									
									<tr>
										<td width="1%" nowrap="" class="tdRightCss"> 题目编号： </td>
										<td width="1%"><input name="question_num" id="no" value="<{$subjectOne.question_num}>" style="width:90%" class="inputTextLine">
										</td>
										<td nowrap="1%" class="tdRightCss"> 题目名称： </td>
										<td width="20%"><input name="title" id="title" value="<{$subjectOne.title}>" style="width:90%" class="inputTextLine">
										</td>
										<td class="tdRightCss">是否必填：</td>
										<td >
											<input type="checkbox" <{if $subjectOne.extend.is_required}>checked="checked"<{/if}> value="1" id="is_required" name="is_required">  	
										</td>
									</tr>
									<tr>
										<td class="tdRightCss"> 题目描述： </td>
										<td colspan="5"><textarea style="width: 90%;height:40px;font-size:12px;line-height: 16px;resize:none;" name="content" id="cue"><{$subjectOne.content}></textarea>
										</td>
									</tr>
									<tr>
											<td width="9%" class="tdRightCss">
												是否关联题目：
											</td>
											<td>
												<input type="checkbox" <{if $subjectOne.extend.is_relation}>checked="checked"<{/if}> value="1" id="is_relation" name="is_relation">  	
											</td>
											<td id="relation" class="tdRightCss" style="display:none;">
												关联题目编号：
											</td>
											<td id="relation_num" style="display:none;">
												<input name="relation_num" value="<{$subjectOne.extend.relation_num}>" style="width:90%" class="inputTextLine" title="规则是字母或者字母加数字，例如：C 表示整个体面编号以C开头的题目，B1,B2b表示B1和B2两个题目">
											</td>
										</tr>
								</tbody>
							</table>
						</div>
						<table width="100%" border="0" cellspacing="0">
							<tr>
								<td height="67" align="center"><input id="submit_fill" type="submit" value="保存" class="button" name="dosubmit2"></td>
							</tr>
						</table>
						</form>
						
						<{if $subjects}>
							<{include file="./set_common.tpl"}>
						<{/if}>
						</td>
				</tr>
			</table></td>
	</tr>
</table>
<{include file="./set_common_js.tpl"}>
<{include file="../common/footer.tpl"}>